<?php
class ui_circle_action_edit extends ui {
	/**
	 * @param object $S
	 * @param Array $param = array (
	 * 		circle_id
	 * 		circle_title				// Magic quote, encodeURIComponent
	 * 		circle_privacy
	 * )
	 */
	public function __construct($S, $param) {
		parent::__construct();
		
		$param['circle_title'] = stripslashes(strip_tags(trim($param['circle_title'])));
		
		$data_circle = new data_circle();
		$data = $data_circle->edit($this->uid, $param['circle_id'], $param['circle_title'], $param['circle_privacy']);
		
		if ($data) {
			$S->assign('data', 'true');
		} else {
			$S->assign('data', 'false');
		}
	}
}
?>